home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / programming / e / powerd0.06 / modules / hardware / adkbits.m
Text File  |  1999-11-30  |  2KB  |  49 lines

  1. /*
  2. **    $VER: adkbits.h 39.1 (18.9.92)
  3. **    Includes Release 40.15
  4. **
  5. **    bit definitions for adkcon register
  6. **
  7. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  8. **        All Rights Reserved
  9. */
  10.  
  11. CONST  ADKB_SETCLR    =15 /* standard set/clear bit */
  12. CONST  ADKB_PRECOMP1    =14 /* two bits of precompensation */
  13. CONST  ADKB_PRECOMP0    =13
  14. CONST  ADKB_MFMPREC    =12 /* use mfm style precompensation */
  15. CONST  ADKB_UARTBRK    =11 /* force uart output to zero */
  16. CONST  ADKB_WORDSYNC    =10 /* enable DSKSYNC register matching */
  17. CONST  ADKB_MSBSYNC    =9  /* (Apple GCR Only) sync on MSB for reading */
  18. CONST  ADKB_FAST        =8  /* 1 -> 2 us/bit (mfm), 2 -> 4 us/bit (gcr) */
  19. CONST  ADKB_USE3PN    =7  /* use aud chan 3 to modulate period of ?? */
  20. CONST  ADKB_USE2P3    =6  /* use aud chan 2 to modulate period of 3 */
  21. CONST  ADKB_USE1P2    =5  /* use aud chan 1 to modulate period of 2 */
  22. CONST  ADKB_USE0P1    =4  /* use aud chan 0 to modulate period of 1 */
  23. CONST  ADKB_USE3VN    =3  /* use aud chan 3 to modulate volume of ?? */
  24. CONST  ADKB_USE2V3    =2  /* use aud chan 2 to modulate volume of 3 */
  25. CONST  ADKB_USE1V2    =1  /* use aud chan 1 to modulate volume of 2 */
  26. CONST  ADKB_USE0V1    =0  /* use aud chan 0 to modulate volume of 1 */
  27.  
  28. CONST  ADKF_SETCLR    =(1<<15)
  29. CONST  ADKF_PRECOMP1    =(1<<14)
  30. CONST  ADKF_PRECOMP0    =(1<<13)
  31. CONST  ADKF_MFMPREC    =(1<<12)
  32. CONST  ADKF_UARTBRK    =(1<<11)
  33. CONST  ADKF_WORDSYNC    =(1<<10)
  34. CONST  ADKF_MSBSYNC    =(1<<9)
  35. CONST  ADKF_FAST        =(1<<8)
  36. CONST  ADKF_USE3PN    =(1<<7)
  37. CONST  ADKF_USE2P3    =(1<<6)
  38. CONST  ADKF_USE1P2    =(1<<5)
  39. CONST  ADKF_USE0P1    =(1<<4)
  40. CONST  ADKF_USE3VN    =(1<<3)
  41. CONST  ADKF_USE2V3    =(1<<2)
  42. CONST  ADKF_USE1V2    =(1<<1)
  43. CONST  ADKF_USE0V1    =(1<<0)
  44.  
  45. CONST ADKF_PRE000NS    =0                                        /* 000 ns of precomp */
  46. CONST ADKF_PRE140NS    =ADKF_PRECOMP0                        /* 140 ns of precomp */
  47. CONST ADKF_PRE280NS    =ADKF_PRECOMP1                        /* 280 ns of precomp */
  48. CONST ADKF_PRE560NS    =ADKF_PRECOMP0|ADKF_PRECOMP1    /* 560 ns of precomp */
  49.